package com.jhgk.jhcee.system.service;

import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @Description:
 * @Author: lemon_xzp
 * @Date: 2021/10/5 15:04
 */
public interface SysRoleResourceRelationService {

    @Transactional
    Boolean deleteRoleResourceRelation(Long roleId, List<Long> resourceIds);

    @Transactional
    Boolean deleteRoleResourceRelation(Long roleId, Long resourceId);

    @Transactional
    Boolean saveRoleResourceRelation(Long roleId, Long resourceId);

    @Transactional
    Boolean saveRoleResourceRelation(Long roleId, List<Long> resourceIds);

    @Transactional
    Boolean saveRoleResourceRelation(List<Long> roleId, Long resourceId);

    @Transactional
    Boolean deleteRolesResource(List<Long> roleIds, Long resourceId);

    @Transactional
    Boolean deleteResourceRelation(Long resourceId);
}
